<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title>体育馆</title>
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<link rel="stylesheet" href="css/mui.min.css">
		<link rel="stylesheet" type="text/css" href="css/paihang.css"/>
		
		<style>
			html,
			body {
				background-color: #efeff4;
			}
		</style>
	</head>

	<body>
		<div id="pullrefresh" class="mui-content mui-scroll-wrapper">
			<div class="mui-scroll">
				<ul id="app" class="mui-table-view mui-table-view-chevron">
					<!--<li class="mui-table-view-cell mui-media">
				        <a href="javascript:;">
				            <img class="mui-media-object mui-pull-left" src="images/pic1.png">
				            <div class="mui-media-body">
				                幸福
				                <p class="mui-ellipsis">能和心爱的人一起睡觉，是件幸福的事情；可是，打呼噜怎么办？</p>
				            </div>
				        </a>
				    </li>-->

					<li class="mui-table-view-cell" v-for="(val, index) of 20" :key="val.id">
						<a href="javascript:;" class="mui-navigate-right">
							<img class="mui-media-object mui-pull-left" src="images/youyongguan.jpg">
							<div class="mui-media-body mui-ellipsis">
								广西体育中心-游泳馆
								<p class="mui-ellipsis">良庆区五象大道西段669号 </p>
							</div>
						</a>
					</li>
				</ul>
			</div>
		</div>
		<script src="js/mui.min.js"></script>
		<script src="js/vue.js"></script>
		<script>
			var app = new Vue({
				el: "#app",
				data: {

				}
			})
			mui.init({
				swipeBack: false,
				keyEventBind: {
					backbutton: false //关闭back按键监听
				},
				pullRefresh: {
					container: '#pullrefresh',
					up: {
						contentrefresh: '正在加载...',
						callback: pullupRefresh
					}
				}
			});
			var count = 0;
			/**
			 * 上拉加载具体业务实现
			 */
			function pullupRefresh() {
				setTimeout(function() {
					mui('#pullrefresh').pullRefresh().endPullupToRefresh((++count > 2)); //参数为true代表没有更多数据了。
					var table = document.body.querySelector('.mui-table-view');
					var cells = document.body.querySelectorAll('.mui-table-view-cell');
					for(var i = cells.length, len = i + 20; i < len; i++) {
						var li = document.createElement('li');
						li.className = 'mui-table-view-cell';
						li.innerHTML = "yitioaxixi";
						table.appendChild(li);
					}
				}, 1000);
			}
			mui(".mui-table-view").on('tap', '.mui-table-view-cell', function() {
				var id = this.getAttribute("id");
				cun('ID',id);
				tiao('detail');
			})
		</script>
	</body>

</html>